/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.actions;

import controller.commands.DeBoxCommand;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import view.GUI.graphic.GraphicView;

/**
 *
 * @author Jelle
 */
public class DeBoxAction extends AbstractAction {

    private GraphicView gview;

    public DeBoxAction(GraphicView gview) {
        this.gview = gview;
    }

    public void actionPerformed(ActionEvent e) {
        System.out.println("DeBoxAction actionPerformed");
        gview.notifyObservers(new DeBoxCommand());
    }
}
